<?php
try{
	$pdo=new PDO('mysql:host=localhost;dbname=test','root','');
	 $sql=<<<EOF

        CREATE TABLE write (

            id INT UNSIGNED AUTO_INCREMENT KEY,

            title VARCHAR(20) NOT NULL UNIQUE,

            author VARCHAR(20) NOT NULL,

            description TINYTEXT NOT NULL,
			
			content TEXT NOT NULL,
			
			time DATATIME NOT NULL

        );

EOF;
$res=$pdo->exec($sql);
echo $res;
var_dump($res);
}catch(PDOException $e){
	echo $e->getMessage();
}
?>